class CreateProductlineitemsAndMeallineitems < ActiveRecord::Migration
  def self.up
    create_table :product_line_items do |t|
      t.integer :product_id
      t.integer :user_id
      t.integer :user_group_id
      t.integer :product_id
      t.integer :quantity
      t.float   :total_price

      t.timestamps
    end
    
    create_table :meal_line_items do |t|
      t.integer :meal_id
      t.integer :user_id
      t.integer :user_group_id
      t.integer :product_id
      t.integer :quantity
      t.float   :total_price

      t.timestamps
    end
  end

  def self.down
    drop_table :product_line_items
    drop_table :meal_line_items
  end
end
